ifErrorValue

Class: com.microstrategy.web.app.taglibs.IfErrorValueTag

Usage:

This custom tag helps to render information when there are errors present in the page. For example:
 <web:ifErrorValue property="contactInfo">
   <web:then>
     If there's an error to display and the contact information is available, this text will be rendered.
   </web:then>
 </web:ifErrorValue>

 <web:ifErrorValue>
   <web:then>
     If there's an error to display, this text will be rendered.
   </web:then>
 </web:ifErrorValue>
 


Name Required? Description
property false Indicates the property to look for about the error information.
Usage:
The possible values for the properties to analyze include:
  • root evaluates if the exception found in the page has root information that can be obtained from it.
  • contactInfo evaluates if there's an exception on the page and if the application has defined contact information in case of errors.
  • code evaluates if there's an exception and the code it has defined is the same as the one specified on the value attribute of this custom tag. If not specifying the property attribute value, then the tag only evaluates if there's an exception found in the page.
  • value false Indicates the value of the code to be compared against the generated exception code value (if existing).
    Usage:
    This attribute is used together with the property attribute if defined as code. The value specified for this attribute will have to match the exception generated code for the custom tag to return True.